#include "device.h"

Device::Device()
{
    this->x = -1;
    this->y = -1;
    this->level = 1;
    this->olt = false;
    children = new QList<Device *>;
    m_nGroupId = -1;
    this->status = -1;
    this->device_status = 1;
    this->parentId = -5;
}
void Device::setDeviceId(int deviceId)
{
    this->deviceId = deviceId;
}
void Device::setName(QString name)
{
    this->name = name;
}

void Device::setMemo(QString memo)
{
    this->memo = memo;
}

void Device::setInfo(QString info)
{
    this->info = info;
}
/*
void Device::setAddress(QString address){
    this->address = address;
}
*/
void Device::setDeviceType(int deviceType)
{
    this->deviceType = deviceType;
}
/*
void Device::setMac(QString mac){
    this->mac = mac;
}*/
void Device::setOlt(int olt)
{
    this->olt = olt;
}
int Device::getOlt()
{
    return this->olt;
}

void Device::setStatus(int status)
{
    this->status = status;
}

void Device::setCdate(QDateTime cdate)
{
    this->cDate = cdate;
}

void Device::setCuid(QString cUid)
{
    this->cUid = cUid;
}

void Device::setUdate(QDateTime udate)
{
    this->uDate = udate;
}

void Device::setUuid(QString uUid)
{
    this->uUid = uUid;
}

int Device::getDeviceId()
{
    return this->deviceId;
}

QString Device::getName()
{
    return this->name;
}

QString Device::getMemo()
{
    return this->memo;
}

QString Device::getInfo()
{
    return this->info;
}
/*
QString Device::getAddress(){
    return this->address;
}
*/
int Device::getDeviceType()
{
    return this->deviceType;
}
/*
QString Device::getMac(){
    return this->mac;
}
*/
int Device::getStatus()
{
    return this->status;
}

QDateTime Device::getCdate()
{
    return this->cDate;
}

QString Device::getCuid()
{
    return this->cUid;
}

QDateTime  Device::getUdate()
{
    return this->uDate;
}

QString Device::getUuid()
{
    return this->uUid;
}
void Device::setLevel(int level)
{
    this->level = level;
}
int Device::getLevel()
{
    return this->level;
}
void Device::setLid(int lid)
{
    this->lid = lid;
}

int  Device::getLid()
{
    return this->lid;
}
void Device::setX(int x)
{
    this->x = x;
}
void Device::setY(int y)
{
    this->y = y;
}
void Device::setSubsetId(int subsetId)
{
    this->subsetId = subsetId;
}
int Device::getSubsetId()
{
    return this->subsetId;
}

int Device::getX()
{
    return this->x;
}
int Device::getY()
{
    return this->y;
}
void Device::addPoint(QPointF   *point)
{
    this->points.push_back(point);
}
list<QPointF *> Device::getPoints()
{
    return this->points;
}
void Device::setWebType(int webType)
{
    this->webType = webType;
}
int Device::getWebType()
{
    return this->webType;
}
void Device::setParentId(int parentId)
{
    this->parentId = parentId;
}
int Device::getParentId()
{
    return this->parentId;
}
void Device::setSubSetIp(QString subsetIp)
{
    this->subSetIp = subsetIp;
}
void Device::setSubSetmask(QString mask)
{
    this->subSetMask = mask;
}
QString Device::getSubSetIp()
{
    return this->subSetIp;
}
QString Device::getSubSetmask()
{
    return this->subSetMask;
}
/*
void Device::setContact(QString contact){
    this->contact = contact;
}
QString Device::getContact(){
    return this->contact;
}*/
void Device::setSnmpsupport(int support)
{
    this->snmpSupport = support;
}
int Device::getSnmpsupport()
{
    return this->snmpSupport;
}
void Device::setSysupTime(int time)
{
    this->sysupTime = time;
}

int Device::getSysupTime()
{
    return this->sysupTime;
}
/*
int Device::getBsid(){
    return this->bsid;
}

void Device::setBsid(int bsid){
    this->bsid = bsid;
}
*/
void Device::setChildren(QList<Device *> *children)
{
    this->children = children;
}
void Device::setdevice_status(int dstatus)
{
    this->device_status = dstatus;
}
int Device::getdeviceStatus()
{
    return this->device_status;
}

QList<Device *> *Device::getChildren()
{
    return this->children;
}

//void Device::setRate(QString rate){
//    this->rate = rate;
//}

//QString Device::getRate(){
//    return this->rate;
//}
